*% Copyright 1996 - 2003, Hewlett-Packard Co.
*% All Rights Reserved.

*%-------------------------------------------------------------------------
*% Version Section
*%-------------------------------------------------------------------------
*GPDFileName: "hpc48s6l.gpd"
*GPDSpecVersion: "1.0"
*GPDFileVersion: "041.237"

*%-------------------------------------------------------------------------
*% Include Section
*%-------------------------------------------------------------------------
*Include: "stdnames.gpd"

*Include: "pclxl.gpd"
*Include: "pjl.gpd"

*Feature: RESDLL
{
    *Name: "resource dll files"

    *Option: STRRESSEC
    {
        *Name: "hpzstlhn.dll"       *% Get this from the required phase
    }

    *Option: FONTRES
    {
        *Name: "pclxl.dll"          *% MS provided resource DLL
    }
}

*Include: "hpzsmlhn.gpd"
*Include: "hpz6mlhn.gpd"

*HelpFile: "hpzhllhn.hlp"               *% Get this from the required phase

*%-------------------------------------------------------------------------
*% Model Name Section
*%-------------------------------------------------------------------------
*ModelName: "HP Color LaserJet 5500 PCL 6"

*MasterUnits: PAIR(1200, 1200)

*PrintRate: 22
*PrintRateUnit: PPM
*PrintRatePPM: 22

*PrinterType: PAGE
*Personality: "PCLXL"                   *%=PERSONALITY_PCLXL
*MaxCopies: 9999                        *% Refer to product specs 

*FontCartSlots: 0
*TTFSEnabled?: TRUE
*DeviceFonts: =CourierFont
*DefaultFont: =FONT_COURIERR
*TTFS: CourierNew
{
  *TTFontName: "Courier New"
  *DevFontName: "Courier"
}

*MinGlyphID: 1
*MaxGlyphID: 6000

*%-------------------------------------------------------------------------
*% Macros section
*%-------------------------------------------------------------------------


*%-------------------------------------------------------------------------
*% DOC_PROP Standard features section
*%-------------------------------------------------------------------------
*Feature: Resolution
{
    *rcNameID: =IDS_RESOLUTION_DISPLAY
    *DefaultOption: 600dpi

    *Option: 600dpi
    {   
        *rcNameID: =IDS_600DPI
        *DPI: PAIR(600, 600)
        *TextDPI: PAIR(600, 600)
        *MinStripBlankPixels: 32
        EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING)
        *SpotDiameter: 100

        *Command: CmdBeginRaster
        {
            *Cmd : =PCLXL_CmdBeginRaster
        }

        *Command: CmdSendBlockData
        {
            *Cmd: =PCLXL_CmdSendBlockData
        }

        *Command: CmdEndRaster
        {
            *Cmd : =EndImage
        }

        *Command: CmdSelect
        {
            *Order: JOB_SETUP.190
            *Cmd: =PJL_RESOLUTION_600 =PJL_ENTER_PCLXL =PCLXL_Protocol3Comment =PCLXL_BeginSession600 =PCLXL_OpenDataSource
        }
    }
}

*Feature: Orientation
{
    *rcNameID: =IDS_ORIENTATION_DISPLAY
    *DefaultOption: PORTRAIT
   
    *Option: PORTRAIT
    {
        *rcNameID: =IDS_PORTRAIT_DISPLAY
        *switch: HPOrientRotate180
        {
            *case: False
            {
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
                }
            }
            *case: True
            {
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: =ubyte =eReversePortrait =attr_ubyte =Orientation
                }
            }
        }
    }

    *Option: LANDSCAPE_CC90
    {
        *rcNameID: =IDS_LANDSCAPE_DISPLAY
        *switch: HPOrientRotate180
        {
            *case: False
            {
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: =ubyte =eLandscapeOrientation =attr_ubyte =Orientation
                }
            }
            *case: True
            {
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
                }
            }
        }
    }
}

*Feature: HPOrientRotate180
{
    *rcNameID: =IDS_ORIENT_ROTATE_180
    *HelpIndex: =IDH_UNIDRV_PRINT_ROTATED
    *DefaultOption: False
    
    *Option: False
    {
        *rcNameID: =IDS_OFF_DISPLAY
    }

    *Option: True
    {
        *rcNameID: =IDS_ON_DISPLAY
    }
}

*Feature: Duplex
{
    *rcNameID: =IDS_TWO_SIDED_PRINTING_DISPLAY
    *HelpIndex: =IDH_UNIDRV_PRINT_ON_BOTH_SIDES_AUTO
    *ConflictPriority: 4
    *DefaultOption: NONE
    
    *Option: NONE
    {
        *rcNameID: =IDS_NONE
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.80
            *Cmd: "@PJL SET DUPLEX=OFF<0A>"
        }
    }

    *Option: VERTICAL
    {
        *rcNameID: =IDS_FLIP_ON_LONG_EDGE_STANDARD
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.80
            *Cmd: "@PJL SET DUPLEX=ON<0A>@PJL SET BINDING=LONGEDGE<0A>"
        }
    }

    *Option: HORIZONTAL
    {
        *rcNameID: =IDS_FLIP_ON_SHORT_EDGE
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.80
            *Cmd: "@PJL SET DUPLEX=ON<0A>@PJL SET BINDING=SHORTEDGE<0A>"
        }
    }
}

*Feature: PaperSize
{
    *rcNameID: =PAPER_SIZE_DISPLAY
    *HelpIndex: =IDH_UNIDRV_PAPER_SIZE
    *ConflictPriority: 1
    *DefaultOption: LETTER
    
    *Option: LETTER                                 *% physical page (10200, 13200 - 8.5" x 11.0")
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            { 
                *PrintableArea: PAIR(9632, 12800)
                *PrintableOrigin: PAIR(284, 200)
                *CursorOrigin: PAIR(284, 200)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.30
                    *Cmd: =ubyte_array =sLetterPaper =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(9632, 12800)
                *PrintableOrigin: PAIR(284, 200)
                *CursorOrigin: PAIR(284, 13000)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.30
                    *Cmd: =ubyte_array =sLetterPaper =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
        }
    }

    *Option: LEGAL                                  *% physical page (10200, 16800 - 8.5" x 14.0"))
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(9800, 16400)
                *PrintableOrigin: PAIR(200, 200)
                *CursorOrigin: PAIR(200, 200)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.30
                    *Cmd: =ubyte_array =sLegalPaper =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(9800, 16400)
                *PrintableOrigin: PAIR(200, 200)
                *CursorOrigin: PAIR(200, 16600)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.30
                    *Cmd: =ubyte_array =sLegalPaper =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
        }
    }

    *Option: EXECUTIVE                              *% physical page (8700, 12600 - 7.25" x 10.5"))
    {                                               
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(8300, 12200)
                *PrintableOrigin: PAIR(200, 200)
                *CursorOrigin: PAIR(200, 200)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.30
                    *Cmd: =ubyte_array =sExecPaper =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(8300, 12200)
                *PrintableOrigin: PAIR(200, 200)
                *CursorOrigin: PAIR(200, 12400)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.30
                    *Cmd: =ubyte_array =sExecPaper =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
        }
    }

    *Option: A4                                      *% physical page (9920, 14030 - 8.2677" x 11.693")
    {                                                
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(9520, 13558)
                *PrintableOrigin: PAIR(200, 236)
                *CursorOrigin: PAIR(200, 236)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.30
                    *Cmd: =ubyte_array =sA4Paper =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(9520, 13558)
                *PrintableOrigin: PAIR(200, 236)
                *CursorOrigin: PAIR(200, 13794)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.30
                    *Cmd: =ubyte_array =sA4Paper =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
        }
    }

    *Option: ENV_10                                 *% physical page (4948, 11400 - 4.125" x 9.5"))
    {                                               
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *InsertBlock: =DuplexConstraints
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(4548, 11000)
                *PrintableOrigin: PAIR(200, 200)
                *CursorOrigin: PAIR(200, 200)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.30
                    *Cmd: =ubyte_array =sCOM10Envelope =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(4548, 11000)
                *PrintableOrigin: PAIR(200, 200)
                *CursorOrigin: PAIR(200, 11200)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.30
                    *Cmd: =ubyte_array =sCOM10Envelope =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
        }
    }

    *Option: ENV_DL                                 *% physical page (5196, 10392 - 4.3307" x 8.6614")
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *InsertBlock: =DuplexConstraints
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(4796, 9992)
                *PrintableOrigin: PAIR(200, 200)
                *CursorOrigin: PAIR(200, 200)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.30
                    *Cmd: =ubyte_array =sDLEnvelope =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(4796, 9992)
                *PrintableOrigin: PAIR(200, 200)
                *CursorOrigin: PAIR(200, 10192)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.30
                    *Cmd: =ubyte_array =sDLEnvelope =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
        }
    }

    *Option: ENV_MONARCH                            *% physical page (4648, 9000 - 3.875" x 7.50")
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *InsertBlock: =DuplexConstraints
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(4248, 8600)
                *PrintableOrigin: PAIR(200, 200)
                *CursorOrigin: PAIR(200, 200)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.30
                    *Cmd: =ubyte_array =sMonarchEnvelope =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(4248, 8600)
                *PrintableOrigin: PAIR(200, 200)
                *CursorOrigin: PAIR(200, 8800)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.30
                    *Cmd: =ubyte_array =sMonarchEnvelope =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
        }
    }

    *Option: ENV_B5                                 *% physical page (8314, 11810 - 6.9291" x 9.8425"))
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *InsertBlock: =DuplexConstraints
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(7914, 11338)
                *PrintableOrigin: PAIR(200, 236)
                *CursorOrigin: PAIR(200, 236)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.30
                    *Cmd: =ubyte_array =sB5Envelope =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(7914, 11338)
                *PrintableOrigin: PAIR(200, 236)
                *CursorOrigin: PAIR(200, 11574)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.30
                    *Cmd: =ubyte_array =sB5Envelope =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
        }
    }

    *Option: A5                                      *% physical page (6992, 9920 - 5.8268" x 8.2677")
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(6592, 9520)
                *PrintableOrigin: PAIR(200, 200)
                *CursorOrigin: PAIR(200, 200)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.30
                    *Cmd: =ubyte_array =sA5Paper =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(6592, 9520)
                *PrintableOrigin: PAIR(200, 200)
                *CursorOrigin: PAIR(200, 9720)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.30
                    *Cmd: =ubyte_array =sA5Paper =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
        }
    }

    *Option: B5                                      *% B5 (JIS) physical page (8598, 12140 - 7.1653" x 10.118")
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(8126, 11740)
                *PrintableOrigin: PAIR(236, 200)
                *CursorOrigin: PAIR(236, 200)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.30
                    *Cmd: =ubyte_array =sJB5Paper =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(8126, 11740)
                *PrintableOrigin: PAIR(236, 200)
                *CursorOrigin: PAIR(236, 11940)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.30
                    *Cmd: =ubyte_array =sJB5Paper =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
        }
    }

    *Option: ENV_C5                                 *% physical page (7652, 10818 - 6.3779" x 9.0157"))
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *InsertBlock: =DuplexConstraints
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(7252, 10346)
                *PrintableOrigin: PAIR(200, 236)
                *CursorOrigin: PAIR(200, 236)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.30
                    *Cmd: =ubyte_array =sC5Envelope =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(7252, 10346)
                *PrintableOrigin: PAIR(200, 236)
                *CursorOrigin: PAIR(200, 10582)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.30
                    *Cmd: =ubyte_array =sC5Envelope =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
        }
    }

    *Option:16K                                      *% physical page (9300, 12900 - 7.75" x 10.75")
    {
       *rcNameID: =IDS_16K_DISPLAY
       *PageDimensions: PAIR(9300,12900)
       *switch: Orientation
       {
           *case: PORTRAIT
           {
               *PrintableArea: PAIR(8900,12500)
               *PrintableOrigin: PAIR(200, 200)
               *CursorOrigin: PAIR(200, 200)
               *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.30
                    *Cmd: =ubyte_array =s16kPaper =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin   
                }
           }
           *case: LANDSCAPE_CC90
           {
               *PrintableArea: PAIR(8900, 12500)
               *PrintableOrigin: PAIR(200, 200)
               *CursorOrigin: PAIR(200, 12700)
               *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.30
                    *Cmd: =ubyte_array =s16kPaper =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
           }
       }
    }

    *Option:EXECUTIVE_JIS                             *% physical page (10202, 15588 - 8.5039" x 12.992"))
    {
        *rcNameID: =IDS_EXECUTIVE_JIS
        *PageDimensions: PAIR(10200,15588)
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(9730, 15190)
                *PrintableOrigin: PAIR(236, 200)
                *CursorOrigin: PAIR(236, 200)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.30
                    *Cmd: =ubyte_array =sJisExecPaper =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(9730, 15190)
                *PrintableOrigin: PAIR(236, 200)
                *CursorOrigin: PAIR(236, 15390)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.30
                    *Cmd: =ubyte_array =sJisExecPaper =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
        }
    }

    *Option: B5_ISO                                               *% B5 (ISO)   6.93" x 9.84"
    {
        *rcNameID: =IDS_B5_DISPLAY
        *PageDimensions: PAIR(8312, 11808)
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(7912, 11408)
                *PrintableOrigin: PAIR(200, 200)
                *CursorOrigin: PAIR(200, 200)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.30
                    *Cmd: =ubyte_array =sB5ISOPaper =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                 }
             }
             *case: LANDSCAPE_CC90
             {
                *PrintableArea: PAIR(7912, 11408)
                *PrintableOrigin: PAIR(200, 200)
                *CursorOrigin: PAIR(200, 11608)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.30
                    *Cmd: =ubyte_array =sB5ISOPaper =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                 }
             }
        }
    }

    *Option: DBL_JAPANESE_POSTCARD_ROTATED          *% physical page (6992, 9448 - 5.8268" x 7.874")
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *InsertBlock: =DuplexConstraints
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(6592,9048)
                *PrintableOrigin: PAIR(200, 200)
                
                *CursorOrigin: PAIR(200, 200)  
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.30
                    *Cmd: =ubyte_array =sJDoublePostcard =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(6592,9048)
                *PrintableOrigin: PAIR(200, 200)
                *CursorOrigin: PAIR(200, 9248)
                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.30
                    *Cmd: =ubyte_array =sJDoublePostcard =attr_ubyte =MediaSize =BeginPage
+                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
        }
    }

    *%  Addition of Wide Paper Sizes ends here

    *Option: CUSTOMSIZE
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *MinSize: PAIR(3600, 6000)                      *% min page (3" x 5")
        *MaxSize: PAIR(14040, 21240)                    *% max page (11.7"x 17.7")
        *MaxPrintableWidth: 14040
        *MinLeftMargin: 100
        *CenterPrintable?: FALSE
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *CustCursorOriginX: %d{200}
                *CustCursorOriginY: %d{200 }
                *CustPrintableOriginX: %d{200}
                *CustPrintableOriginY: %d{200}
                *CustPrintableSizeX: %d{PhysPaperWidth - 400}
                *CustPrintableSizeY: %d{PhysPaperLength - 400}

                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.30
                    *Cmd: =uint16_xy %l{(PhysPaperWidth*254)/1200}%l{(PhysPaperLength*254)/1200} =attr_ubyte =CustomMediaSize
+                         =ubyte =eTenthsOfAMillimeter =attr_ubyte =CustomMediaSizeUnits =BeginPage
+                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
            *case: LANDSCAPE_CC90
            {

                *CustCursorOriginX: %d{200}
                *CustCursorOriginY: %d{PhysPaperLength + 200}
                *CustPrintableOriginX: %d{200}
                *CustPrintableOriginY: %d{200}
                *CustPrintableSizeX: %d{PhysPaperWidth - 400}
                *CustPrintableSizeY: %d{PhysPaperLength - 400}

                *Command: CmdSelect
                {
                    *Order: PAGE_SETUP.30
                    *Cmd: =uint16_xy %l{(PhysPaperWidth*254)/1200}%l{(PhysPaperLength*254)/1200} =attr_ubyte =CustomMediaSize
+                         =ubyte =eTenthsOfAMillimeter =attr_ubyte =CustomMediaSizeUnits =BeginPage
+                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
                }
            }
        }
    }

    *%  Unsupported Papers for Allow Scaling From Larger Paper (Virtual Paper Sizes)
    *%  No commands are associated with these
    *%  The paper sizes for this printer are A3, B4 (JIS), 8K and 11x17

    *Option: A3                                     *% physical page (14030, 19842 - 11.693" x 16.535")
    {
         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
         *switch: Orientation
         {
             *case: PORTRAIT
             {
                 *PrintableArea: PAIR(13462, 19442)
                 *PrintableOrigin: PAIR(284, 200)
                 *CursorOrigin: PAIR(284, 200)
             }
             *case: LANDSCAPE_CC90
             {
                 *PrintableArea: PAIR(13630, 19370)
                 *PrintableOrigin: PAIR(200, 236)
                 *CursorOrigin: PAIR(200, 19606)
             }
         }
    }

    *Option: B4                                      *% B4 (JIS) physical page (12140, 17196 - 10.118" x 14.33")
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(11572, 16796)
                *PrintableOrigin: PAIR(284, 200)
                *CursorOrigin: PAIR(284, 200)
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(11740, 16724)
                *PrintableOrigin: PAIR(200, 236)
                *CursorOrigin: PAIR(200, 16960)
            }
        }
    }

    *Option:8K                                      *% physical page (12900, 18600 - 10.748" x 15.512")
    {
        *rcNameID: =IDS_8K
        *PageDimensions: PAIR(12900,18600)
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(12300, 18200)
                *PrintableOrigin: PAIR(300, 200)
                *CursorOrigin: PAIR(300, 200)
            }

            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(12500, 18120)
                *PrintableOrigin: PAIR(200, 240)
                *CursorOrigin: PAIR(200, 18360)
            }
        }
    }

    *Option: 11X17                                   *% physical page (13200, 20400 - 11.00" x 17.00")
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(12600, 20000)
                *PrintableOrigin: PAIR(300, 200)
                *CursorOrigin: PAIR(300, 200)
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(12800, 19920)
                *PrintableOrigin: PAIR(200, 240)
                *CursorOrigin: PAIR(200, 20160)
            }
        }
    }

        *Option: A2
    {                                                *% physical page (19848, 28068 - 16.54" x 23.39")
         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
         *switch: Orientation
         {
             *case: PORTRAIT
             {
                 *PrintableArea: PAIR(19280, 27668)
                 *PrintableOrigin: PAIR(284, 200)
                 *CursorOrigin: PAIR(284, 200)
             }
             *case: LANDSCAPE_CC90
             {
                 *PrintableArea: PAIR(19448, 27596)
                 *PrintableOrigin: PAIR(200, 236)
                 *CursorOrigin: PAIR(200, 27832)
             }
         }
     }
 
    *Option: CSHEET                                   *% physical page (20400, 26400 - 17.00" x 22.00")
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(19800, 26000)
                *PrintableOrigin: PAIR(300, 200)
                *CursorOrigin: PAIR(300, 200)
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(20000, 25920)
                *PrintableOrigin: PAIR(200, 240)
                *CursorOrigin: PAIR(200, 26160)
            }
        }
    }
    *%  Addition of Unsupported Papers ends here
}

*Feature: InputBin
{
    *rcNameID: =IDS_PAPER_SOURCE
    *HelpIndex: =IDH_UNIDRV_FIRST_PAGE_SOURCE_IS
    *ConflictPriority: 3
    *DefaultOption: PrinterSelect

    *Option: PrinterSelect
    {
        *rcNameID: =IDS_PRINTER_AUTO_SELECT
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.10
            *Cmd: =ubyte =eAutoSelect =attr_ubyte =MediaSource
        }
    }

    *Option: Tray1
    {
        *rcNameID: =IDS_TRAY1
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.10
            *Cmd: =ubyte =eMultiPurposeTray =attr_ubyte =MediaSource
        }
    }

    *Option: Tray2
    {
        *rcNameID: =IDS_TRAY2
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.10
            *Cmd: =ubyte =eUpperCassette =attr_ubyte =MediaSource
        }
    }

    *Option: Tray3_500
    {
        *rcNameID: =IDS_TRAY3_500
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.10
            *Cmd: =ubyte =eLowerCassette =attr_ubyte =MediaSource
        }
    }

    *Option: Tray4_500
    {
        *rcNameID: =IDS_TRAY4_500
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.10
            *Cmd: =ubyte =eThirdCassette =attr_ubyte =MediaSource
        }
    }

    *Option: ManualFeed
    {
        *rcNameID: =IDS_MANUAL_FEED_TRAY1
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.10
            *Cmd: =ubyte =eManualFeed =attr_ubyte =MediaSource
        }
    }
}

*Feature: MediaType
{
    *rcNameID: =IDS_MEDIA_TYPE_DISPLAY
    *HelpIndex: =IDH_UNIDRV_FIRST_PAGE_TYPE_IS
    *ConflictPriority: 2
    *DefaultOption: Auto

    *Option: Auto
    {
        *rcNameID: =IDS_UNSPECIFIED
    }

    *Option: PLAIN
    {
        *rcNameID: =IDS_PLAIN_TYPE
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.20
            *Cmd: =ubyte_array =uint16 "<0500>" =ePlain =attr_ubyte =MediaType
        }
    }

    *Option: PREPRINTED
    {
        *rcNameID: =IDS_PREPRINTED_TYPE
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.20
            *Cmd: =ubyte_array =uint16 "<0a00>" =ePreprinted =attr_ubyte =MediaType
        }
    }

    *Option: LETTERHEAD
    {
        *rcNameID: =IDS_LETTERHEAD_TYPE
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.20
            *Cmd: =ubyte_array =uint16 "<0a00>" =eLetterhead =attr_ubyte =MediaType
        }
    }

    *Option: TRANSPARENCY
    {
        *rcNameID: =IDS_TRANSPARENCY_DISPLAY
        *InsertBlock: =DuplexConstraints
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.20
            *Cmd: =ubyte_array =uint16 "<0c00>" =eTransparency =attr_ubyte =MediaType
        }
    }

    *Option: PREPUNCHED
    {
        *rcNameID: =IDS_PREPUNCHED_TYPE
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.20
            *Cmd: =ubyte_array =uint16 "<0a00>" =ePrepunched =attr_ubyte =MediaType
        }
    }

    *Option: LABELS
    {
        *rcNameID: =IDS_LABELS_TYPE
        *InsertBlock: =DuplexConstraints
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.20
            *Cmd: =ubyte_array =uint16 "<0600>" =eLabels =attr_ubyte =MediaType
        }
    }

    *Option: BOND
    {
        *rcNameID: =IDS_BOND_TYPE
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.20
            *Cmd: =ubyte_array =uint16 "<0400>" =eBond =attr_ubyte =MediaType
        }
    }

    *Option: RECYCLED
    {
        *rcNameID: =IDS_RECYCLED_TYPE
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.20
            *Cmd: =ubyte_array =uint16 "<0800>" =eRecycled =attr_ubyte =MediaType
        }
    }

    *Option: COLOR
    {
        *rcNameID: =IDS_COLOR_TYPE
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.20
            *Cmd: =ubyte_array =uint16 "<0500>" =eColor =attr_ubyte =MediaType
        }
    }

    *Option: LIGHT
    {
        *rcNameID: =IDS_LIGHT1              *%  "Light <75 g/m2"

        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.20
            *Cmd: =ubyte_array =uint16 "<0500>" =eMediaLight =attr_ubyte =MediaType
        }
    }

    *Option: HEAVY
    {
        *rcNameID: =IDS_HEAVY1              *%  "Heavy 106-163 g/m2"
        *InsertBlock: =DuplexConstraints

        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.20
            *Cmd: =ubyte_array =uint16 "<0500>" =eHeavy =attr_ubyte =MediaType
        }
    }

    *Option: CARDSTOCK
    {
        *rcNameID: =IDS_CARDSTOCK_164       *%  "Cardstock >164 g/m2

        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.20
            *Cmd: =ubyte_array =uint16 "<0a00>" =eCardstock =attr_ubyte =MediaType
        }
    }

    *Option: GLOSS
    {
        *rcNameID: =IDS_GLOSSY1             *%  "Glossy 75-105 g/m2"
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.20
            *Cmd: =ubyte_array =uint16 "<0500>" =eGloss =attr_ubyte =MediaType
        }
    }

    *Option: HEAVY_GLOSSY
    {
        *rcNameID: =IDS_HEAVY_GLOSSY        *%  "Heavy Glossy"
        *InsertBlock: =DuplexConstraints
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.20
            *Cmd: =ubyte_array =uint16 "<0b00>" =eHeavyGloss =attr_ubyte =MediaType
        }
    }

    *Option: TOUGHPAPER
    {
        *rcNameID: =IDS_TOUGH_PAPER
        *InsertBlock: =DuplexConstraints
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.20
            *Cmd: =ubyte_array =uint16 "<0b00>""Tough Paper" =attr_ubyte =MediaType
        }
    }

    *Option: ENVELOPE
    {
        *rcNameID: =IDS_ENVELOPE_TYPE
        *InsertBlock: =DuplexConstraints
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.20
            *Cmd: =ubyte_array =uint16 "<0800>" =eEnvelope =attr_ubyte =MediaType
        }
    }

    *%  Addition of User Defined Media Types. These are processed through EAC/BiDi.
    *%  Currently MOMBI supports only upto 5. Also make sure that HPMediaPMLRange feature is also present

    *Option: UserDefinedMedia1
    {
        *Name: " "
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.20
            *CallbackID: =CMDCB_USERDEFINED_MEDIA
        }
    }

    *Option: UserDefinedMedia2
    {
        *Name: " "
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.20
            *CallbackID: =CMDCB_USERDEFINED_MEDIA
        }
    }

    *Option: UserDefinedMedia3
    {
        *Name: " "
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.20
            *CallbackID: =CMDCB_USERDEFINED_MEDIA
        }
    }

    *Option: UserDefinedMedia4
    {
        *Name: " "
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.20
            *CallbackID: =CMDCB_USERDEFINED_MEDIA
        }
    }

    *Option: UserDefinedMedia5
    {
        *Name: " "
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.20
            *CallbackID: =CMDCB_USERDEFINED_MEDIA
        }
    }

    *%  End of Addition of User Defined Media Types.

}

*Feature: Collate
{
    *rcNameID: =IDS_COLLATE
    *DefaultOption: OFF

    *Option: OFF
    {
        *rcNameID: =IDS_OFF_DISPLAY
    }

    *Option: ON
    {
        *rcNameID: =IDS_ON_DISPLAY
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.90
            *Cmd: "@PJL SET QTY=" %d{NumOfCopies}"<0A>"
        }
        *Constraints: DeviceIsMopier.NotInstalled
    }
}

*Feature: OutputBin
{
    *rcNameID: =IDS_OUTPUTBIN_DISPLAY
    *HelpIndex: =IDH_UNIDRV_OUTPUT_BIN_EC6
    *DefaultOption: Upper

    *Option: Upper
    {
        *rcNameID: =IDS_TOP_BIN_FACE_DOWN
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.100
            *Cmd: "@PJL SET OUTBIN=UPPER<0A>"
        }
    }
}

*Feature: HPImageShift
{
     *rcNameID: =IDS_IMAGE_SHIFT1
     *HelpIndex: 15310
     *DefaultOption: Off
     *Option: Off
     {
       *rcNameID: =IDS_OFF 
       *Command: CmdSelect
        {
            *Order: JOB_SETUP.80
            *Cmd: "@PJL SET PROCESSINGTYPE=<22>IMAGE_SHIFT<22><0A>@PJL SET PROCESSINGOPTION=<22>NONE<22><0A>@PJL SET PROCESSINGBOUNDARY=MOPY<0A>"
        }
     }
     *Option: On
     {
       *rcNameID: =IDS_ON 
       *Command: CmdSelect
        {
            *Order: JOB_SETUP.80
            *Cmd: "@PJL SET PROCESSINGTYPE=<22>IMAGE_SHIFT<22><0A>@PJL SET PROCESSINGOPTION=<22>ON<22><0A>@PJL SET PROCESSINGBOUNDARY=MOPY<0A>"
        }
     }
}

*Feature: HPAutoDuplexScaling
{
    *rcNameID: =IDS_PRINT_ON_BOTH_SIDES_OPTIONS_DISPLAY
    *HelpIndex: =IDH_PRESERVE_LAYOUT_EC6
    *FeatureType: DOC_PROPERTY
    *DefaultOption: True

    *Option: False
    {
        *rcNameID: =IDS_DONOT_REDUCE_CONTENT_DISPLAY
    }

    *Option: True
    {
        *rcNameID: =IDS_REDUCE_CONTENT_DISPLAY
    }
}

*%  Keep this feature only for color printers
*%  For monochrome printers, make the Mono CmdStartPage block global

*ChangeColorModeOnDoc?: FALSE
*Feature: ColorMode
{
    *rcNameID: =IDS_COLOR_PRINTING_MODE
    *DefaultOption: 24bpp
    *HelpIndex: =IDH_UNIDRV_COLOR_MODE
    *Option: Mono
    {
        *rcNameID: =IDS_MONOCHROME
        *DevNumOfPlanes: 1
        *DevBPP: 24
        *DrvBPP: 24
        *Color? : FALSE
        *PaletteSize: 1
        *PaletteProgrammable? : TRUE
        *Command: CmdDefinePaletteEntry { *Cmd: "" }
    }
    *Option: 24bpp
    {
        *rcNameID: =IDS_TRUE_COLOR
        *DevNumOfPlanes: 1
        *DevBPP: 24
        *DrvBPP: 24
        *PaletteSize: 256
        *PaletteProgrammable? : TRUE
        *Command: CmdDefinePaletteEntry { *Cmd: "" }
    }
}

*switch: ColorMode
{
    *case: Mono
    {
        *Command: CmdStartPage
        {
            *Order: PAGE_SETUP.90
            *Cmd: =real32_xy "<0000803f><0000803f>" =attr_ubyte =PageScale =SetPageScale
+                 =ubyte =eGray =attr_ubyte =ColorSpace =SetColorSpace
         }
    }
    *case: 24bpp
    {
        *Command: CmdStartPage
        {
            *Order: PAGE_SETUP.90
            *Cmd: =real32_xy "<0000803f><0000803f>" =attr_ubyte =PageScale =SetPageScale
+                 =ubyte =eRGB =attr_ubyte =ColorSpace =SetColorSpace
        }
    }
}


*Feature: TextAsBlack
{
    *rcNameID: =IDS_PRINTALLBLACK
    *FeatureType: DOC_PROPERTY
    *HelpIndex: =IDH_UNIDRV_PRINT_TEXT_BLACK_EC5
    *DefaultOption: False

    *Option: False
    {
        *rcNameID: =IDS_DISABLED_DISPLAY
    }

    *Option: True
    {
        *rcNameID: =IDS_ENABLED_DISPLAY
    }
}

*Feature: TTAsBitmapsSetting
{
    *rcNameID: =IDS_TTASBITMAPS
    *FeatureType: DOC_PROPERTY
    *HelpIndex: =IDH_UNIDRV_TRUETYPE_AS_BITMAP
    *DefaultOption: TTModeOutline

    *Option: TTModeOutline
    {
        *rcNameID: =IDS_DISABLED_DISPLAY
    }

    *Option: TTModeBitmap
    {
        *rcNameID: =IDS_ENABLED_DISPLAY
    }
}

*switch: TTAsBitmapsSetting
{
    *case: TTModeBitmap
    {
        *FontFormat: HPPCL_RES
    }
    *case: TTModeOutline
    {
        *FontFormat: HPPCL_OUTLINE
    }
}

*Feature: RETChoice
{
    *rcNameID: =IDS_RET
    *DefaultOption: True
    *HelpIndex: =IDH_UNIDRV_HP5SI_RET

    *Option: False
    {
        *rcNameID: =IDS_OFF_DISPLAY
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.130
            *Cmd: =PJL_RET_OFF
        }
    }

    *Option: True
    {
        *rcNameID: =IDS_ON_DISPLAY
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.130
            *Cmd: =PJL_RET_MEDIUM
        }
    }
}

*Feature: HPBackSidePrinting
{
    *rcNameID: =IDS_BACK_SIDE_PRINTING
    *FeatureType: DOC_PROPERTY
    *HelpIndex: =IDH_UNIDRV_BACKSIDE_PRINTING
    *DefaultOption: False

    *Option: False
    {
        *rcNameID: =IDS_OFF_DISPLAY
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.140
            *Cmd: "@PJL SET PRINTONBACKSIDE=OFF<0A>"
        }
    }

    *Option: True
    {
        *rcNameID: =IDS_ON_DISPLAY
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.140
            *Cmd: "@PJL SET PRINTONBACKSIDE=ON<0A>"
        }
    }
}

*Feature: JPEGEnable
{
    *rcNameID: =IDS_RASTER_COMPRESSION
    *FeatureType: DOC_PROPERTY
    *HelpIndex: =IDH_RASTER_COMPRESSION_EC6
    *DefaultOption: Best

    *Option: Auto
    {
        *rcNameID: =IDS_AUTOMATIC
    }

    *Option: Best
    {
        *rcNameID: =IDS_BEST_QUALITY
    }

    *Option: Maximum
    {
         *rcNameID: =IDS_MAXIMUM_COMPRESSION
    }
}

*Feature: Smoothing
{
    *rcNameID: =IDS_SMOOTHING
    *HelpIndex: 15319
    *DefaultOption: True
    *Option: False
    {
        *rcNameID: =IDS_OFF_DISPLAY
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.11
            *Cmd: "@PJL SET SMOOTHING=OFF<0A>"
        }
    }
    *Option: True
    {
        *rcNameID: =IDS_ON_DISPLAY
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.11
            *Cmd: "@PJL SET SMOOTHING=ON<0A>"
        }
    }
}

*%-------------------------------------------------------------------------
*% PRN_PROP Standard features section
*%-------------------------------------------------------------------------

*Feature: AutoConfiguration
{
    *rcNameID: =IDS_AUTO_CONFIGURATION
    *HelpIndex: =IDH_UPDATE_NOW_EC6
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: NotInstalled

    *Option: NotInstalled
    {
        *rcNameID: =IDS_OFF_DISPLAY
    }
    *Option: Installed
    {
        *rcNameID: =IDS_UPDATE_NOW
    }
}

*Feature: Tray3
{
    *rcNameID: =IDS_TRAY3
    *FeatureType: PRINTER_PROPERTY
    *HelpIndex: =IDH_UNIDRV_HP5SI_TRAY    
    *DefaultOption: NotInstalled

    *Option: NotInstalled
    {
        *rcNameID: =IDS_NOTINSTALLED
        *Constraints: LIST(InputBin.Tray3_500, InputBin.Tray4_500)
    }

    *Option: Tray3_500
    {
        *rcNameID: =IDS_500_SHEET_TRAY3
    }
}

*Feature: Tray4
{
    *rcNameID: =IDS_TRAY4
    *FeatureType: PRINTER_PROPERTY
    *HelpIndex: =IDH_UNIDRV_HP5SI_HCI    
    *DefaultOption: NotInstalled

    *Option: NotInstalled
    {
        *rcNameID: =IDS_NOTINSTALLED
        *Constraints: LIST(InputBin.Tray4_500)
    }

    *Option: Tray4_500
    {
        *rcNameID: =IDS_500_SHEET_TRAY4
    }
}

*Feature: DuplexUnit
{
    *rcNameID: =IDS_DUPLEX_2_SIDED_PRINTING
    *FeatureType: PRINTER_PROPERTY
    *HelpIndex: =IDH_UNIDRV_DUPLEX_UNIT_EC5
    *DefaultOption: NotInstalled

    *Option: NotInstalled
    {
        *rcNameID: =IDS_NOTINSTALLED
        *Constraints: LIST(Duplex.VERTICAL,Duplex.HORIZONTAL)
        *DisabledFeatures: LIST(Duplex)
    }

    *Option: Installed
    {
        *rcNameID: =IDS_INSTALLED
    }
}

*Feature: ManualDuplex
{
    *rcNameID: =IDS_MANUALDUPLEX
    *FeatureType: PRINTER_PROPERTY
    *HelpIndex: =IDH_UNIDRV_ALLOW_MANUAL_DUPLEXING_EC6
    *DefaultOption: True

    *Option: False
    {
        *rcNameID: =IDS_DISABLED_DISPLAY
    }

    *Option: True
    {
        *rcNameID: =IDS_ENABLED_DISPLAY
    }
}

*Feature: Memory
{
    *rcNameID: =IDS_PRINTER_MEMORY
    *HelpIndex: =IDH_UNIDRV_HP5SI_MEM
    *DefaultOption: 96MB

    *Option: 96MB
    {
        *rcNameID: =IDS_96_MB
        *MemoryConfigMB: PAIR(96, 6)
    }

    *Option: 128MB
    {
        *rcNameID: =IDS_128_MB
        *MemoryConfigMB: PAIR(128, 22)
    }

    *Option: 160MB
    {
        *rcNameID: =IDS_160_MB
        *MemoryConfigMB: PAIR(160, 38)
    }

    *Option: 192MB
    {
        *rcNameID: =IDS_192_MB
        *MemoryConfigMB: PAIR(192, 54)
    }

    *Option: 224MB
    {
        *rcNameID: =IDS_224_MB
        *MemoryConfigMB: PAIR(224, 70)
    }

    *Option: 256MB
    {
        *rcNameID: =IDS_256_MB
        *MemoryConfigMB: PAIR(256, 86)
    }

    *Option: 288MB
    {
        *rcNameID: =IDS_288_MB
        *MemoryConfigMB: PAIR(288, 102)
    }

    *Option: 320MB
    {
        *rcNameID: =IDS_320_MB
        *MemoryConfigMB: PAIR(320, 118)
    }

    *Option: 352MB
    {
        *rcNameID: =IDS_352_MB
        *MemoryConfigMB: PAIR(352, 134)
    }

    *Option: 384MB
    {
        *rcNameID: =IDS_384_MB
        *MemoryConfigMB: PAIR(384, 150)
    }
}

*Feature: PrinterHardDisk
{
    *rcNameID: =IDS_PRINTERHARDDISK
    *FeatureType: PRINTER_PROPERTY
    *HelpIndex: =IDH_UNIDRV_PRINTER_HARD_DISK
    *DefaultOption: NotInstalled

    *Option: NotInstalled
    {
        *rcNameID: =IDS_NOTINSTALLED
    }

    *Option: Installed
    {
        *rcNameID: =IDS_INSTALLED
    }
}

*Feature: JobRetention
{
    *rcNameID: =IDS_JOBR_CB_TITLE
    *FeatureType: PRINTER_PROPERTY
    *HelpIndex: =IDH_UNIDRV_JOBRETENTION_PH3
    *DefaultOption: NotInstalled

    *Option: NotInstalled
    {
        *rcNameID: =IDS_DISABLED_DISPLAY
    }

    *Option: Installed
    {
        *rcNameID: =IDS_ENABLED_DISPLAY
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.30
            *CallbackID: =CMDCB_JRSTARTDOC
        }
    }
}

*Feature: DeviceIsMopier
{
    *rcNameID:=IDS_MOPIER_MODE
    *FeatureType: PRINTER_PROPERTY
    *HelpIndex: =IDH_UNIDRV_MOPIER_ENABLED
    *DefaultOption: NotInstalled
    
    *Option: NotInstalled
    {
        *rcNameID: =IDS_DISABLED_DISPLAY
        *DisabledFeatures: LIST(Collate)
    }
    *Option: Installed
    {
        *rcNameID: =IDS_ENABLED_DISPLAY
    }
}

*%-------------------------------------------------------------------------
*% DOC_PROP Custom features section
*%-------------------------------------------------------------------------

*%  This feature is used for the Print Quality association.
*%  The help index, and option name strings are taken from here and displayed on the HP Paper/Quality tab page
*%  under the Print Quality list box. 
*%  Each of these option selections are associated with a set of other GPD feature selections
*%  (visible or hidden in treeview) using the HP specific XML data file

*% This feature's options varies drastically between LJ and BIJ. Hence both are shown here for clarity

*%  This is the LJ version
*Feature: PrintQualityGroup
{
    *Name: "PrintQualityGroup"
    *HelpIndex: =IDH_UNIDRV_PRINT_QUALITY_PH3
    *FeatureType: DOC_PROPERTY
    *DefaultOption: PQGroup_1

    *Option: PQGroup_1         *%600 dpi
    {
        *rcNameID: =IDS_600DPI_RES
    }
}

*%  This feature is used for specifying whether the printer is color or monochrome
*%  Possible values are MONOCHROME_MODE, COLOR_MODE
*%  Based on the color/monochrome support, the Color tab is shown in the HP UI. 
*%  Using this, additional specific processing and switching can also be done in the HP UI and render plug-in modules

*%  HPColorSmart feature - specifies Automatic and Manual options

*Feature: HPColorSmart
{
    *Name: "HPColorSmart"
    *FeatureType: DOC_PROPERTY
    *HelpIndex: =IDH_UNIDRV_COLORTREATMENT

    *Option: Automatic
    {
      *rcNameID: =IDS_RB_AUTOMATIC
    }

    *Option: Manual
    {
      *rcNameID: =IDS_RB_MANUAL
    }
}

*%  Associated features under HPColorSmart
*%  The help index, and strings are taken from specified pseuod-options and displayed on the Color tab ColorSmart treeview dialog
*%  The actual options are also specified and commands are sent through them

*%  Verify the actual options, commands, help and strings from the spec

*Feature: HPColorSmart_Text_NeutralGrays
{
    *Name: "HPColorSmart_Text_NeutralGrays"
    *FeatureType: DOC_PROPERTY
    *HelpIndex: =IDH_UNIDRV_COLOROPTIONS_TEXT_PH3
    *DefaultOption: BlackOnly

    *Option: RCID_500_911
    {
        *Name: " "
    }

    *Option: HelpID_15070
    {
        *Name: " "
    }

    *Option: Default_BlackOnly
    {
        *Name: " "
    }

    *Option: BlackOnly
    {
        *rcNameID: =IDS_NEUTRAL_GRAYS_BLACK
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.50
            *Cmd: =ubyte =eTonerBlack =attr_ubyte =TextObjects
        }
    }

    *Option: 4-Color
    {
        *rcNameID: =IDS_NEUTRAL_GRAYS_4_COLOR
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.50
            *Cmd: =ubyte =eProcessBlack =attr_ubyte =TextObjects
        }
    }
}

*Feature: HPColorSmart_Text_Halftone
{
    *Name: "HPColorSmart_Text_Halftone"
    *FeatureType: DOC_PROPERTY
    *HelpIndex: =IDH_UNIDRV_COLOROPTIONS_TEXT_PH3
    *DefaultOption: Detail

    *Option: RCID_500_784
    {
        *Name: " "
    }

    *Option: HelpID_15254
    {
        *Name: " "
    }

    *Option: Default_Smooth
    {
        *Name: " "
    }

    *Option: Smooth
    {
        *rcNameID: =IDS_TEXT
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.53
            *Cmd:  =ubyte =eLowLPI =attr_ubyte =TextObjects
        }
    }

    *Option: Detail
    {
        *rcNameID: =IDS_HALFTONE1
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.53
            *Cmd:  =ubyte =eHighLPI =attr_ubyte =TextObjects
        }
    }
}

*Feature: HPColorSmart_Text_RGBColor
{
    *Name: "HPColorSmart_Text_RGBColor"
    *FeatureType: DOC_PROPERTY
    *HelpIndex: =IDH_UNIDRV_COLOROPTIONS_GENERAL_PH3
    *DefaultOption: Default(sRGB)

    *Option: RCID_500_916
    {
        *Name: " "
    }

    *Option: HelpID_15300
    {
        *Name: " "
    }

    *Option: Default_Default(sRGB)
    {
        *Name: " "
    }

    *Option: Default(sRGB)
    {
        *rcNameID: =IDS_RGB_DEFAULT
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.56
            *Cmd: =ubyte =eScreenMatch =attr_ubyte =TextObjects
        }
    }

    *Option: Vivid
    {
        *rcNameID: =IDS_COLMATCH2
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.56
            *Cmd: =ubyte =eVivid =attr_ubyte =TextObjects
        }
    }

    *Option: Device
    {
        *rcNameID: =IDS_RGB_DEVICE
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.56
            *Cmd: =ubyte =eNoTreatment =attr_ubyte =TextObjects
        }
    }
}

*Feature: HPColorSmart_Graphics_NeutralGrays
{
    *Name: "HPColorSmart_Graphics_NeutralGrays"
    *FeatureType: DOC_PROPERTY
    *HelpIndex: =IDH_UNIDRV_COLOROPTIONS_GRAPHICS
    *DefaultOption: BlackOnly

    *Option: RCID_501_911
    {
        *Name: " "
    }

    *Option: HelpID_15070
    {
        *Name: " "
    }

    *Option: Default_BlackOnly
    {
        *Name: " "
    }

    *Option: BlackOnly
    {
        *rcNameID: =IDS_NEUTRAL_GRAYS_BLACK
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.52
            *Cmd: =ubyte =eTonerBlack =attr_ubyte =VectorObjects =SetNeutralAxis
        }
    }

    *Option: 4-Color
    {
        *rcNameID: =IDS_NEUTRAL_GRAYS_4_COLOR
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.52
            *Cmd: =ubyte =eProcessBlack =attr_ubyte =VectorObjects =SetNeutralAxis
        }
    }
}

*Feature: HPColorSmart_Graphics_Halftone
{
    *Name: "HPColorSmart_Graphics_Halftone"
    *FeatureType: DOC_PROPERTY
    *HelpIndex: =IDH_UNIDRV_COLOROPTIONS_GRAPHICS
    *DefaultOption: Detail

    *Option: RCID_501_784
    {
        *Name: " "
    }

    *Option: HelpID_15254
    {
        *Name: " "
    }

    *Option: Default_Detail
    {
        *Name: " "
    }

    *Option: Smooth
    {
        *rcNameID: =IDS_TEXT
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.55
            *Cmd:  =ubyte =eLowLPI =attr_ubyte =VectorObjects =SetHalftoneMethod
        }
    }

    *Option: Detail
    {
        *rcNameID: =IDS_HALFTONE1
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.55
            *Cmd:  =ubyte =eHighLPI =attr_ubyte =VectorObjects =SetHalftoneMethod
        }
    }
}

*Feature: HPColorSmart_Graphics_RGBColor
{
    *Name: "HPColorSmart_Graphics_RGBColor"
    *FeatureType: DOC_PROPERTY
    *HelpIndex: =IDH_UNIDRV_COLOROPTIONS_GENERAL_PH3
    *DefaultOption: Default(sRGB)

    *Option: RCID_501_916
    {
        *Name: " "
    }

    *Option: HelpID_15300
    {
        *Name: " "
    }

    *Option: Default_Default(sRGB)
    {
        *Name: " "
    }

    *Option: Default(sRGB)
    {
        *rcNameID: =IDS_RGB_DEFAULT
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.58
            *Cmd: =ubyte =eScreenMatch =attr_ubyte =VectorObjects =SetColorTreatment
        }
    }

    *Option: Vivid
    {
        *rcNameID: =IDS_COLMATCH2
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.58
            *Cmd: =ubyte =eVivid =attr_ubyte =VectorObjects =SetColorTreatment
        }
    }

    *Option: Device
    {
        *rcNameID: =IDS_RGB_DEVICE
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.58
            *Cmd: =ubyte =eNoTreatment =attr_ubyte =VectorObjects =SetColorTreatment
        }
    }
}

*Feature: HPColorSmart_Photo_NeutralGrays
{
    *Name: "HPColorSmart_Photo_NeutralGrays"
    *FeatureType: DOC_PROPERTY
    *HelpIndex: =IDH_UNIDRV_COLOROPTIONS_PHOTOS_PH3
    *DefaultOption: 4-Color

    *Option: RCID_502_911
    {
        *Name: " "
    }

    *Option: HelpID_15070
    {
        *Name: " "
    }

    *Option: Default_4-Color
    {
        *Name: " "
    }

    *Option: BlackOnly
    {
        *rcNameID: =IDS_NEUTRAL_GRAYS_BLACK
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.51
            *Cmd: =ubyte =eTonerBlack =attr_ubyte =RasterObjects
        }
    }

    *Option: 4-Color
    {
        *rcNameID: =IDS_NEUTRAL_GRAYS_4_COLOR
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.51
            *Cmd: =ubyte =eProcessBlack =attr_ubyte =RasterObjects
        }
    }
}

*Feature: HPColorSmart_Photo_Halftone
{
    *Name: "HPColorSmart_Photo_Halftone"
    *FeatureType: DOC_PROPERTY
    *HelpIndex: =IDH_UNIDRV_COLOROPTIONS_PHOTOS_PH3
    *DefaultOption: Detail

    *Option: RCID_502_784
    {
        *Name: " "
    }

    *Option: HelpID_15254
    {
        *Name: " "
    }

    *Option: Default_Detail
    {
        *Name: " "
    }

    *Option: Smooth
    {
        *rcNameID: =IDS_TEXT
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.54
            *Cmd:  =ubyte =eLowLPI =attr_ubyte =RasterObjects
        }
    }

    *Option: Detail
    {
        *rcNameID: =IDS_HALFTONE1
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.54
            *Cmd:  =ubyte =eHighLPI =attr_ubyte =RasterObjects
        }
    }
}

*Feature: HPColorSmart_Photo_RGBColor
{
    *Name: "HPColorSmart_Photo_RGBColor"
    *FeatureType: DOC_PROPERTY
    *HelpIndex: =IDH_UNIDRV_COLOROPTIONS_GENERAL_PH3
    *DefaultOption: Default(sRGB)

    *Option: RCID_502_916
    {
        *Name: " "
    }

    *Option: HelpID_15300
    {
        *Name: " "
    }

    *Option: Default_Default(sRGB)
    {
        *Name: " "
    }

    *Option: Default(sRGB)
    {
        *rcNameID: =IDS_RGB_DEFAULT
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.57
            *Cmd: =ubyte =eScreenMatch =attr_ubyte =RasterObjects
        }
    }

    *Option: Vivid
    {
        *rcNameID: =IDS_COLMATCH2
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.57
            *Cmd: =ubyte =eVivid =attr_ubyte =RasterObjects
        }
    }

    *Option: Device
    {
        *rcNameID: =IDS_RGB_DEVICE
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.57
            *Cmd: =ubyte =eNoTreatment =attr_ubyte =RasterObjects
        }
    }
}

*Feature: HPColorSmart_ColorOptions_EdgeControl
{
    *Name: "HPColorSmart_ColorOptions_EdgeControl"
    *FeatureType: DOC_PROPERTY
    *HelpIndex: =IDH_UNIDRV_COLOROPTIONS_GENERAL_PH3
    *DefaultOption: Normal

    *Option: RCID_914_915
    {
        *Name: " "
    }

    *Option: HelpID_15117
    {
        *Name: " "
    }

    *Option: Default_Normal
    {
        *Name: " "
    }

    *Option: Off
    {
        *rcNameID: =IDS_OFF
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.60
            *Cmd: =ubyte =eDisable =attr_ubyte =TextObjects
+                 =ubyte =eDisable =attr_ubyte =RasterObjects
+                 =ubyte =eDisable =attr_ubyte =VectorObjects =SetAdaptiveHalftoning
+                 =ubyte =eDisable =attr_ubyte =AllObjectTypes =SetColorTrapping    
        }
    }

    *Option: Light
    {
        *rcNameID: =IDS_LIGHT3
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.60
            *Cmd: =ubyte =eEnable =attr_ubyte =TextObjects
+                 =ubyte =eEnable =attr_ubyte =RasterObjects
+                 =ubyte =eEnable =attr_ubyte =VectorObjects =SetAdaptiveHalftoning
+                 =ubyte =eLight =attr_ubyte =AllObjectTypes =SetColorTrapping    
        }
    }

    *Option: Normal
    {
        *rcNameID: =IDS_NORMAL
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.60
            *Cmd: =ubyte =eEnable =attr_ubyte =TextObjects
+                 =ubyte =eEnable =attr_ubyte =RasterObjects
+                 =ubyte =eEnable =attr_ubyte =VectorObjects =SetAdaptiveHalftoning
+                 =ubyte =eNormal =attr_ubyte =AllObjectTypes =SetColorTrapping    
        }
    }

    *Option: Maximum
    {
        *rcNameID: =IDS_EC_MAXIMUM
        *Command: CmdSelect
        {
            *Order: PAGE_SETUP.60
            *Cmd: =ubyte =eEnable =attr_ubyte =TextObjects
+                 =ubyte =eEnable =attr_ubyte =RasterObjects
+                 =ubyte =eEnable =attr_ubyte =VectorObjects =SetAdaptiveHalftoning
+                 =ubyte =eMax =attr_ubyte =AllObjectTypes =SetColorTrapping    
        }
    }
}

*Feature: HPColorSmart_ColorOptions_RGBColor
{
    *Name: "HPColorSmart_ColorOptions_RGBColor"
    *DefaultOption: Default(sRGB)
    *FeatureType: DOC_PROPERTY
    *HelpIndex: =IDH_UNIDRV_COLOROPTIONS_GENERAL_PH3

    *Option: RCID_502_916
    {
         *Name: " "
    }

    *Option: HelpID_15118
    {
         *Name: " "
    }

    *Option: Default_Default(sRGB)
    {
         *Name: " "
    }

    *Option: Default(sRGB)
    {
       *rcNameID: =IDS_RGB_DEFAULT
       *Command: CmdSelect
       {
           *Order: PAGE_SETUP.59
           *Cmd: =ubyte =eScreenMatch =attr_ubyte =ColorTreatment =SetColorTreatment
       }
    }

    *Option: Device
    {
       *rcNameID: =IDS_RGB_DEVICE
       *Command: CmdSelect
       {
           *Order: PAGE_SETUP.59
           *Cmd: =ubyte =eVivid =attr_ubyte =ColorTreatment =SetColorTreatment
       }
    }
}

*Feature: HPColorMode
{
    *Name: "HPColorMode"
    *FeatureType: DOC_PROPERTY
    *DefaultOption: COLOR_MODE

    *Option: COLOR_MODE
    {
        *Name: "COLOR_MODE"
    }
}


*%  This feature is used for specifying the PDL of the driver. 
*%  Possible values are PDL_PCL3, PDL_PCL5, PDL_PCL6, PDL_PS
*%  Using this, additional specific processing and switching can also be done in the HP UI and render plug-in modules

*Feature: HPPDLType
{
    *Name: "HPPDLType"
    *FeatureType: DOC_PROPERTY
    *DefaultOption: PDL_PCL6

    *Option: PDL_PCL6
    {
        *Name: "PCL 6"
    }
}

*% This feature is used for specifying the encoding supported by the printer
*% Possible values are UTF8, 7 Bit ASCII Encoding, 8 Bit ASCII Encoding and No Encoding
*% Using this, various PJL strings (Job Storage User Names, Job Names etc) can be encoded and sent to the printer

*Feature: HPPJLEncoding
{
    *Name: "HPPJLEncoding"
    *FeatureType: DOC_PROPERTY
    *DefaultOption: UTF8

    *Option: UTF8
    {
        *Name: "UTF8"
    }
}

*% This feature is used for the Job Accounting feature for sending various statistical and metrics data to the printer
*% Possible values are HPJOBACCT_JOBACNT (Job Accounting alone), HPJOBACCT_JOBACNT_TIMESTAMP (Job Accounting and Time Stamp)
*% A callback ID (must be 1) is specified and in the render module, the metrics data is obtained 
*% and sent as PJLs to the printer

*Feature: HPJobAccounting
{
    *Name: "HPJobAccounting"    
    *FeatureType: DOC_PROPERTY

    *Option: HPJOBACCT_JOBACNT
    {
        *Name: "HPJOBACCT_JOBACNT"
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.10
            *CallbackID: =CMDCB_HPJOBACCOUNT
        }
    }
}

*% This feature is used for the Born On Date feature for sending the date/time stamp of the job to the printer
*% Possible values are HPBOD
*% A callback ID (must be 3) is specified and in the render module, the date/time stamp is obtained 
*% and sent as PJLs to the printer

*Feature: HPBornOnDate
{
    *Name: "HPBornOnDate"
    *FeatureType: DOC_PROPERTY
    *DefaultOption: HPBOD

    *Option: HPBOD
    {
        *Name: "HPBOD"
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.20
            *CallbackID: =CMDCB_HPBOD
        }
    }
}

*% This feature is used for the Job By Hob Override feature. Here the user name needs to be sent with every job
*% Possible values are JBJO
*% A callback ID (must be 5) is specified and in the render module, the user name is obtained 
*% and sent as PJLs to the printer

*Feature: HPJobByJobOverride
{
    *Name: "HPJobByJobOverride"
    *FeatureType: DOC_PROPERTY
    *DefaultOption: JBJO

    *Option: JBJO
    {
        *Name: "JBJO"
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.40
            *CallbackID: =CMDCB_HPJBJO
        }
    }
}

*% This feature is used for specifying the HP specific XML file name that the printer is using
*% The HP specific XML file is an additional data fle to the UI and render modules. It specifies enhanced data like
*% Print Quality automation, External Quicksets, Media Type Ordering, DMC Install and Upgrade Time events etc
*% The XML file is used only in the read mode dynamically during the UI session

*Feature: HPXMLFileUsed
{
    *Name: "HPXMLFileUsed"
    *FeatureType: DOC_PROPERTY
    *DefaultOption: hpc48s6l.xml

    *Option: hpc48s6l.xml
    {
        *Name: "hpc48s6l.xml"
    }

    *Option: HPXMLFileNameEnd
    {
        *Name: ""
    }
}

*% This feature is used for specifying whether PCL5 pass through support is present in the printer.
*% This feature would only be present in PCL6 drivers since only they support PCL5 passthrough.

*Feature: HPPCL6PassThrough
{
    *Name: "HPPCL6PassThrough"
    *FeatureType: DOC_PROPERTY
    *DefaultOption: True

    *Option: True
    {
        *Name: "True"
    }    
}

*% This feature is used for enabling smart duplexing on a single page job
*% (i.e not playing the blank side of the page)
*% Required as True for all products

*Feature: HPSmartDuplexSinglePageJob
{
    *Name: "HPSmartDuplexSinglePageJob"
    *FeatureType: DOC_PROPERTY
    *DefaultOption: True

    *Option: True
    {
        *Name: "True"
    }
}

*% This feature is used for enabling smart duplexing on odd page job and improving duplex performance for the same
*% Option is printer model dependent. False if model does not support this and True otherwise

*Feature: HPSmartDuplexOddPageJob
{
    *Name: "HPSmartDuplexOddPageJob"
    *FeatureType: DOC_PROPERTY
    *DefaultOption: True
    
    *Option: True
    {
        *Name: "True"
    }
}

*%  Manual Duplex custom feature
*%  Specifies the bitmaps and strings for the manual duplex pop-up dialog that comes at print time

*Feature: HPManualDuplexDialogItems
{
    *Name: "HPManualDuplexDialogItems"
    *DefaultOption: InstructionID_01_FACEDOWN-NOROTATE
    
    *Option: InstructionID_01_FACEDOWN-NOROTATE
    {
        *Name:"BitmapID_105_StringID_3313"
    }

    *Option: InstructionID_01_FACEUP-NOROTATE
    {
        *Name:"BitmapID_106_StringID_3886"
    }

    *Option: InstructionID_02_FACEDOWN-NOROTATE
    {
        *Name:"BitmapID_107_StringID_3070"
    }

    *Option: InstructionID_02_FACEUP-NOROTATE
    {
        *Name:"BitmapID_107_StringID_3071"
    }

    *Option: InstructionID_03_FACEDOWN-NOROTATE
    {
        *Name:"BitmapID_109_StringID_3065"
    }

    *Option: InstructionID_03_FACEUP-NOROTATE
    {
        *Name:"BitmapID_109_StringID_3065"
    }
}

*%  Manual Duplex custom feature
*%  Specifies the ManualFeed Tray Paper Orientation of the printer model
*%  Possible values are FACEDOWN, FACEUP

*Feature: HPManualFeedOrientation
{
    *Name: "HPManualFeedOrientation"
    *DefaultOption: FACEDOWN

    *Option: FACEDOWN
    {
        *Name:"FACEDOWN"
    }
}

*%  Manual Duplex custom feature
*%  HPOutputBinOrientation - should have orientations of all supported output bins
*%  If the printer has no selectable outputbins, this feature has only 1 option - FACEUP/FACEDOWN
*%  If the printer has selectable outputbins, this feature should have 1 option each for each 
*%  of the selectable output bins eg Option1-FACEDOWN, Option2-FACEUP

*Feature: HPOutputBinOrientation
{
    *Name: "HPOutputBinOrientation"
    *DefaultOption: FACEDOWN

    *Option: FACEDOWN
    {
        *Name:"FACEDOWN"
    }
}

*%  Manual Duplex custom feature
*%  Specifies whether the Manual Duplex pop-up dialog must be modal (used mainly for Inkjets) or modeless (used for LJ)
*%  Possible values are Modeless, Modal

*Feature: HPManualDuplexDialogModel
{
    *Name: "HPManualDuplexDialogModel"
    *DefaultOption: Modeless

    *Option: Modeless
    {
        *Name:"Modeless"
    }
}

*%  Manual Duplex custom feature
*%  ManualDuplex Page Order
*%  Possible values are EvenPagesFirst, OddPagesFirst

*Feature: HPManualDuplexPageOrder
{
    *Name: "HPManualDuplexPageOrder"
    *DefaultOption: EvenPagesFirst

    *Option: EvenPagesFirst
    {
        *Name:"EvenPagesFirst"
    }
}

*%  Manual Duplex custom feature
*%  ManualDuplex Mapping of Manual Feed Tray to Tray 1
*%  Possible values are True, False
*%  Value should be True only if the Manual Duplex PJL is sent

*Feature: HPMapManualFeedToTray1
{
    *Name: "HPMapManualFeedToTray1"
    *DefaultOption: True

    *Option: True
    {
        *Name:"True"
    }
}

*Feature: HPPrintOnBothSidesManually
{
    *rcNameID: =IDS_MANUALDUPLEX
    *FeatureType: DOC_PROPERTY
    *HelpIndex: =IDH_UNIDRV_PRINT_ON_BOTH_SIDES_MANUAL_EC6
    *ConflictPriority: 5
    *DefaultOption: False

    *Option: False
    {
       *rcNameID: =IDS_OFF_DISPLAY
       *Command: CmdSelect
       {
           *Order: JOB_SETUP.70
           *CallbackID: =CMDCB_MANUALDUPLEX
       }
    }
    *Option: True
    {
       *rcNameID: =IDS_ON_DISPLAY
       *Command: CmdSelect
       {
           *Order: JOB_SETUP.70
           *CallbackID: =CMDCB_MANUALDUPLEX
       }
    }
}

*Feature: HPStraightPaperPath
{    
    *rcNameID: =IDS_CORRECT_ORDER_REAR_BIN
    *HelpIndex: =IDH_UNIDRV_STRAIGHT_PAPER_PATH_EC6
    *DefaultOption: False

    *Option: False
    {
        *rcNameID: =IDS_DISABLED_DISPLAY
    }

    *Option: True
    {
        *rcNameID: =IDS_ENABLED_DISPLAY
        *InsertBlock: =DuplexConstraints
    }
}

*%  PUMP PJL Usage feature
*%  Used to send printing usage information that can be analysed by applications on the printer. 
*%  Similar to Job Accounting and used in BIJ and DJ

*Feature: HPSendPJLUsageCmd
{
    *Name: "HPSendPJLUsageCmd"
    *FeatureType: DOC_PROPERTY
    *DefaultOption: CURI

    *Option: CURI
    {
        *Name: "CURI"
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.50
            *CallbackID: =CMDCB_PUMPPJLUSAGE
        }
    }
}

*%  HPCovers custom feature
*%  This feature is used for processing the Cover Sheet options for Digital Copiers
*%  This feature defines the list of options that will appear in the List Box on the Paper/Quality tab page

*Feature: HPCovers
{
    *Name: "HPCovers"
    *FeatureType: DOC_PROPERTY
    *ConflictPriority: 6
    *DefaultOption: Other_Pages

    *Option: Front_Cover
    {
        *rcNameID: =IDS_FRONT_DOVER
    }

    *Option: First_Page
    {
        *rcNameID: =IDS_STA_FIRST_PAGE
    }

    *Option: Other_Pages
    {
        *rcNameID: =IDS_MEDIA_LB_OTHER_PAGES
    }

    *Option: Last_Page
    {
        *rcNameID: =IDS_LAST_PAGE
    }

    *Option: Back_Cover
    {
        *rcNameID: =IDS_BACK_COVER
    }
}


*%  HPCovers custom feature - Front_Cover_from_Feeder_InputBin
*%  This feature is used for defining the Input Bins that should appear for the Front_Cover_from_Feeder list box option

*Feature: Front_Cover_from_Feeder_InputBin
{
    *rcNameID: =IDS_FRONT_COVER_FROM_FEEDER 
    *DefaultOption: None

    *Option: None
    {
        *rcNameID: =IDS_NONE
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.30
            *Cmd: "@PJL SET PROCESSINGTYPE=PI_COVER_FRONT<0A>@PJL SET PROCESSINGOPTION=OFF<0A>"
        }
    }

    *Option: CoverSheetFeederUpperTray
    {
        *rcNameID: =IDS_COVER_SHEET_FEEDER_UPPER
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.30
            *Cmd: "@PJL SET PROCESSINGTYPE=<22>PI_COVER_FRONT<22><0A>@PJL SET PROCESSINGOPTION=<22>UPPER_TRAY<22><0A>@PJL SET PROCESSINGBOUNDARY=MOPY<0A>"
        }
    }

    *Option: CoverSheetFeederLowerTray
    {
        *rcNameID: =IDS_COVER_SHEET_FEEDER_LOWER
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.30
            *Cmd: "@PJL SET PROCESSINGTYPE=<22>PI_COVER_FRONT<22><0A>@PJL SET PROCESSINGOPTION=<22>LOWER_TRAY<22><0A>@PJL SET PROCESSINGBOUNDARY=MOPY<0A>"
        }
    }
}

*%  HPCovers custom feature - Back_Cover_from_Feeder_InputBin
*%  This feature is used for defining the Input Bins that should appear for the Back_Cover_from_Feeder list box option

*Feature: Back_Cover_from_Feeder_InputBin
{
    *rcNameID: =IDS_BACK_COVER_FROM_FEEDER
    *DefaultOption: None

    *Option: None
    {
        *rcNameID: =IDS_NONE
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.30
            *Cmd: "@PJL SET PROCESSINGTYPE=PI_COVER_BACK<0A>@PJL SET PROCESSINGOPTION=OFF<0A>"
        }
    }

    *Option: CoverSheetFeederUpperTray
    {
        *rcNameID: =IDS_COVER_SHEET_FEEDER_UPPER
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.30
            *Cmd: "@PJL SET PROCESSINGTYPE=<22>PI_COVER_BACK<22><0A>@PJL SET PROCESSINGOPTION=<22>UPPER_TRAY<22><0A>@PJL SET PROCESSINGBOUNDARY=MOPY<0A>"
        }
    }

    *Option: CoverSheetFeederLowerTray
    {
        *rcNameID: =IDS_COVER_SHEET_FEEDER_LOWER
        *Command: CmdSelect
        {
             *Order: JOB_SETUP.30
             *Cmd: "@PJL SET PROCESSINGTYPE=<22>PI_COVER_BACK<22><0A>@PJL SET PROCESSINGOPTION=<22>LOWER_TRAY<22><0A>@PJL SET PROCESSINGBOUNDARY=MOPY<0A>"
        }
    }
}

*%-------------------------------------------------------------------------
*% PRN_PROP Custom features section
*%-------------------------------------------------------------------------

*%  Job Storage custom feature
*%  JRConstraints will have an option value for full, none or partial
*%  (1) JRCHDFull - the printer requires a Hard Disk for ALL JR options
*%  (2) JRCHDPartial - the printer requires a HardDisk only for SOME JR options.
*%  (3) JRCHDNone - the printer does NOT require a HardDisk for ANY JR options

*Feature: JRConstraints
{
    *Name: "JRConstraints"
    *FeatureType: DOC_PROPERTY
    *DefaultOption: JRCHDPartial

    *Option: JRCHDPartial
    {
        *Name: "JRCHDPartial"
    }
    *Option: JRCJobRet
    {
        *Name: "JRCJobRet"
    }
    *Option: 0
    {
        *Name: "0"
    }
}

*%  Job Storage custom feature
*%  Two JR Option constraint features are defined
*%  (1) JRHDInstalled - This lists the JR options available when HD is installed
*%  (2) JRHDNotInstalled - This lists the JR options available when HD is not installed
*%      The options are as follows - (in this order)
*%               (a) JRHDOff
*%               (b) JRHDProof
*%               (c) JRHDPrivate
*%               (d) JRHDQuickCopy
*%               (e) JRHDStore
*%  Note: The options are the same for both JRHDInstalled and JRHDNotInstalled

*Feature: JRHDInstalled
{
    *Name: "JRHDInstalled"
    *FeatureType: DOC_PROPERTY
    *DefaultOption: JRHDOff
    *Option: JRHDOff
    {
        *Name: "JRHDOff"
    }

    *Option: JRHDProof
    {
        *Name: "JRHDProof"
    }

    *Option: JRHDPrivate
    {
        *Name: "JRHDPrivate"
    }

    *Option: JRHDQuickCopy
    {
        *Name: "JRHDQuickCopy"
    }

    *Option: JRHDStore
    {
        *Name: "JRHDStore"
    }
}

*Feature: JRHDNotInstalled
{
    *Name: "JRHDNotInstalled"
    *FeatureType: DOC_PROPERTY
    *DefaultOption: JRHDOff

    *Option: JRHDOff
    {
        *Name: "JRHDOff"
    }

    *Option: JRHDProof
    {
        *Name: "JRHDProof"
    }

    *Option: JRHDPrivate
    {
        *Name: "JRHDPrivate"
    }
}

*% This feature is used for specifying the Support for Larger paper (SLP) feature which allows the user to select a paper
*% size larger than what the printer supports and still print that onto a supported (mapped) paper without any page reflow
*% in the document at the application side
*% Currently, this feature is either always supported for printers or not suppoted at all. 
*% This means that this feature is not user modifiable and has no UI exposure
*% To support SLP, define this feature with *DefaultOption: Installed
*% To remove SLP support, define this feature with *DefaultOption: NotInstalled or do not define the feature

*Feature: ScaleFromLargePaper
{    
    *rcNameID: =IDS_LARGE_PAPER_SUPPORT    
    *FeatureType: PRINTER_PROPERTY
    *HelpIndex: =IDH_UNIDRV_LARGER_PAPER
    *DefaultOption: Installed

    *Option: NotInstalled
    {
        *rcNameID: =IDS_DISABLED_DISPLAY
    }

    *Option: Installed
    {
        *rcNameID: =IDS_ENABLED_DISPLAY
    }
}

*% This feature is used in conjunction with the ScaleFromLargePaper above. It should be present only if 
*% ScaleFromLargePaper above is present. This specifies the Actual (supported) MaxSize dimensions of the printer
*% since the *MaxSize keyword dimensions have been specified as the maximum larger (SLP) paper
*% Specify the option name as X_Y whre X and Y are the width and height of the paper in "tens of mm"

*Feature: ActualCustomRange     *% 12.05" x 18.05"   -   306mm x 470 mm
{
    *Name: "Actual Custom Range"
    *ConcealFromUI?: TRUE
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: 305980_469900
    *Option: 305980_469900
    {
        *Name: "305980_469900"
    }       
}

*% This feature is used for the "Combine Media Types and Sources in the application list" feature
*% This feature is currently not shown in the treeview because of Unidrv limitations. 
*% So in any product, this feature is either always present as installed or always present as Not Installed

*Feature: CombineMediaTypesAndInputBins
{
    *rcNameID: =IDS_COMBINE_SOURCE_TYPE
    *FeatureType: PRINTER_PROPERTY 
    *HelpIndex: =IDH_UNIDRV_COMBINE_SOURCE_TYPE
    *DefaultOption: Installed
    
    *Option: Installed
    {
        *rcNameID: =IDS_ENABLED_DISPLAY
    }
}

*%  EAC custom feature
*%  This feature is used to get the Feature Name of the Installable Tray. 
*%  Since all Installable Input Trays are separate GPD features,
*%  a separate custom feature is required to get all the Instalable Input Tray names
*%  This printer has 3 installable trays - Tray3 and Tray4

*% Verify that each Installable Tray option corresponds to an option here 

*Feature: HPInstallableTrayFeatureName
{
    *Name: "HPInstallableTrayFeatureName"
    *FeatureType: PRINTER_PROPERTY

    *Option: Tray3
    {
         *Name: ""
    }

    *Option: Tray4
    {
         *Name: ""
    }
}

*%  EAC custom feature
*%  This feature is used to get the part number of each Installable Tray so that mapping with the PML values can be done

*% Verify that each Installable Tray option having PML specification as part number multiple corresponds to an option here 

*Feature: HPInstallableTrayName
{
     *Name: "HPInstallableTrayName"
     *FeatureType: PRINTER_PROPERTY

     *Option: Tray3-C7130A
     {
          *Name: ""
     }
*IgnoreBlock
{
     *Option: Tray4-C7130A
     {
          *Name: ""
     }
}
}


*%  EAC custom feature
*%  This feature is used to get the capacity of each Installable Tray so that mapping with the PML values can be done

*% Verify that each Installable Tray option having PML specification as capacity corresponds to an option here 

*Feature: HPInstallableTraySize
{
    *Name: "HPInstallableTraySize"
    *FeatureType: PRINTER_PROPERTY

    *Option: Tray3_500-500-LOWER_CASSETTE
    {
         *Name: ""
    }

    *Option: Tray4_500-500-HCI
    {
         *Name: ""
    }
}

*% This feature is used for specifying if the HP custom font installer is to be used

*Feature: HPFontInstaller
{
    *Name: "HPFontInstaller"
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: TRUE

    *Option: TRUE
    {
        *Name: ""
    }
}

*%  This feature is used for specifying the range of User Defined Media types. 
*%  This range is used to construct the command sent to the printer for user defined media types

*Feature: HPMediaPMLRange
{
    *Name: "HPMediaPMLRange"
    *FeatureType: PRINTER_PROPERTY

    *Option: 15-19
    {
         *Name: "15-19"
    }
}

*%-------------------------------------------------------------------------
*% Constraints section
*%-------------------------------------------------------------------------


*%-------------------------------------------------------------------------
*% Commands section
*%-------------------------------------------------------------------------

*%  Job and page commands

*Command: CmdStartJob
{
    *Order: JOB_SETUP.1
    *Cmd: =PJL_STARTJOB =PJL_COMMENT 
}

*Command: CmdEndJob
{
    *Order: JOB_FINISH.1
    *Cmd: =CloseDataSource =EndSession =PJL_ENDJOB
}

*%  Cursor commands

*Command: CmdCR { *Cmd: "" }
*Command: CmdLF { *Cmd: "" }
*Command: CmdFF { *Cmd: "" }
*Command: CmdXMoveAbsolute
{
    *Cmd: ""
}
*Command: CmdXMoveRelRight
{
    *Cmd: ""
    *Params: LIST(DestXRel, TextXRes)
}
*Command: CmdXMoveRelLeft
{
    *Cmd: ""
    *Params: LIST(DestXRel, TextXRes)
}
*Command: CmdYMoveAbsolute
{
    *Cmd: ""
    *Params: LIST(DestY, TextYRes)
}
*Command: CmdYMoveRelDown
{
    *Cmd: ""
    *Params: LIST(DestYRel, TextYRes)
}
*Command: CmdYMoveRelUp
{
    *Cmd: ""
    *Params: LIST(DestYRel, TextYRes)
}

*% Font commands

*Command: CmdSetFontID
{
    *Cmd : ""
}
*Command: CmdSelectFontID
{
    *Cmd: ""
    *Params: LIST(FontHeight, CurrentFontID, TextYRes)
}
*Command: CmdSetCharCode
{
    *Cmd : ""
}
*Command: CmdBoldOn
{
    *Cmd : ""
}
*Command: CmdBoldOff
{
    *Cmd : ""
}
*Command: CmdSetAnyRotation
{
    *Cmd: ""
    *Params: LIST(PrintDirInCCDegrees)
}
*Command: CmdSetSimpleRotation
{
    *Cmd: ""
    *Params: LIST(PrintDirInCCDegrees)
}

*%-------------------------------------------------------------------------
*% Render standard keywords section
*%-------------------------------------------------------------------------

*CharPosition: BASELINE     *% character positioning keyword must be present even if device font are not present
*RotateCoordinate?: TRUE
*RotateRaster?: TRUE
*RotateFont?: TRUE
*EjectPageWithFF?: FALSE
*TextCaps: LIST(TC_CR_ANY,TC_CR_90,TC_SF_X_YINDEP,TC_SA_CONTIN,TC_IA_ABLE,TC_UA_ABLE)
*MemoryUsage: LIST(FONT)
*CursorXAfterCR: AT_PRINTABLE_X_ORIGIN
*CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN
*CursorYAfterSendBlockData: AUTO_INCREMENT
*BadCursorMoveInGrxMode: LIST(X_PORTRAIT,Y_LANDSCAPE)
*XMoveThreshold: 0
*YMoveThreshold: 0
*XMoveUnit: 1200
*YMoveUnit: 1200
